<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>静态表格</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
        <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
        <script src="../../jslib/jquery-3.6.0.js"></script>
        <script src="../../js/userManager.js"></script>
    </head>
    <body>
        <div class="layui-fluid">

            <!--private Integer orderId;


            private Long orderNum;


            private String courseInfo;

            private Integer userId;


            private Integer userid;


            private String orderStatus;


            private String remark;


            private  Double orderPrice;
-->
            <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">查询条件</div>
                        <div class="layui-card-body">
                            <form class="layui-form">
                                <table id="queryUserTable" class="layui-table">
                                    <tbody>
                                        <tr>
                                            <td style="width: 100px">用户手机：</td>
                                            <td><input type="text" name="userIphone" placeholder="请输入用户手机"
                                                       autocomplete="off"
                                                       class="layui-input">
                                                <input type="hidden" name="gotoPageHidden" value="1">
                                            </td>
                                            <td style="width: 100px">昵称：</td>
                                            <td><input type="text" name="userNickname" placeholder="请输入昵称"
                                                       autocomplete="off"
                                                       class="layui-input">
                                            </td>
                                            <td>起始注册日期：</td>
                                            <td><input type="text" class="layui-input"
                                                       id="userRegistertimeFrom"
                                                       name="userRegistertimeFrom"
                                                       placeholder="yyyy-MM-dd">
                                            </td>
                                            <td>结束注册日期：</td>
                                            <td><input type="text" class="layui-input"
                                                       id="userRegistertimeTo"
                                                       name="userRegistertimeTo"
                                                       placeholder="yyyy-MM-dd">
                                            </td>
                                            <td style="width: 100px">状态：</td>
                                            <td><select name="userStatus" lay-verify="required"
                                                        lay-filter="status">
                                               <option value="-1">请选择</option>
                                                <option value="0">正常</option>
                                                <option value="1">禁用</option>
                                            </select>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td style="text-align: center" colspan="8">
                                                <button id="queryUserButton" type="button"
                                                        class="layui-btn layui-btn-normal">
                                                    开始查询
                                                </button>
                                                <button id="resetUserButton" type="button"
                                                        class="layui-btn layui-btn-danger">
                                                    重置表单
                                                </button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">查询结果</div>
                        <div class="layui-card-body">
                            <table id="pageDataListTable" class="layui-table">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>用户编号</th>
                                        <th>用户手机</th>
                                        <th>昵称</th>
                                        <th>用户类型</th>
                                        <th>注册时间</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <table id="gotoPageTable" class="layui-table">
                            <tr>
                                <td>
                                    <div id="pageComponent"></div>
                                </td>
                                <td style="text-align: center; width: 350px;">
                                    <button type="button" name="getAllPageRecordCount"
                                            class="layui-btn layui-btn-sm layui-btn-danger"></button>
                                    <button type="button" name="getCurrentPageRecordCount"
                                            class="layui-btn layui-btn-sm layui-btn-danger"></button>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div id="insertUserDivOut" style="display: none">
            <div id="insertUserDiv" class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form">
                        <table id="insertUserTable" class="layui-table">
                            <tbody>
                                <tr>
                                    <td style="width: 150px">教师ID：</td>
                                    <td><input type="text" name="userId" placeholder="请输入教师ID"
                                               autocomplete="off"
                                               class="layui-input">
                                </tr>
                                <tr>
                                    <td>教师名字：</td>
                                    <td><input type="text" name="userName" placeholder="请输入教师名字"
                                               autocomplete="off"
                                               class="layui-input">
                                </tr>
                                <tr>
                                    <td>密码：</td>
                                    <td><input type="text" name="password" placeholder="请输入密码"
                                               autocomplete="off"
                                               class="layui-input">
                                </tr>
                                <tr>
                                    <td>生日：</td>
                                    <td><input type="text" class="layui-input"
                                               id="insertBirthday"
                                               name="insertBirthday"
                                               placeholder="yyyy-MM-dd">
                                    </td>
                                </tr>
                                <tr>
                                    <td>性别：</td>
                                    <td><select name="sex" lay-verify="required">
                                        <option value="男">男</option>
                                        <option value="女">女</option>
                                    </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>电话：</td>
                                    <td><input type="text" name="phone" placeholder="请输入电话"
                                               autocomplete="off"
                                               class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td>邮箱：</td>
                                    <td><input type="text" name="email" placeholder="请输入邮箱"
                                               autocomplete="off"
                                               class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td>机构名称：</td>
                                    <td><input type="text" name="organizationName" autocomplete="off"
                                               class="layui-input" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: center" colspan="3">
                                        <button id="insertUser" type="button" class="layui-btn layui-btn-normal">
                                            添加教师
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
        </div>
        <div id="editUserDivOut" style="display: none">
            <div id="editUserDiv" class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form">
                        <table id="editUserTable" class="layui-table">
                            <tbody>
                            <tr>
                                <td style="width: 150px">序号：</td>
                                <td><input type="text" name="userId"
                                           autocomplete="off"
                                           class="layui-input" readonly>
                            </tr>
                                <tr>
                                    <td style="width: 150px">用户编号：</td>
                                    <td><input type="text" name="userNum"
                                               autocomplete="off"
                                               class="layui-input" readonly>
                                </tr>
                                <tr>
                                    <td>用户手机：</td>
                                    <td><input type="text" name="userIphone"
                                               autocomplete="off"
                                               class="layui-input">
                                </tr>
                                <tr>
                                    <td>昵称：</td>
                                    <td><input type="text" class="layui-input"
                                               id="userNickname"
                                               name="userNickname"
                                               placeholder="yyyy-MM-dd">
                                    </td>
                                </tr>
                                <tr>
                                    <td>用户类型：</td>
                                    <td><select id="userType" name="userType" lay-verify="required">
                                        <option value="0">学生</option>
                                        <option value="1">教师</option>
                                    </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>注册时间：</td>
                                    <td><input type="text" name="userRegistertime"
                                               autocomplete="off"
                                               class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td>状态：</td>
                                    <td><input type="text" name="userStatus"
                                               autocomplete="off"
                                               class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: center" colspan="3">
                                        <button id="updateUser" type="button" class="layui-btn layui-btn-normal">确认修改
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
        </div>
        <script src="../../layuiadmin/layui/layui.js"></script>
        <script>
            layui.config({
                base: '../../layuiadmin/' //静态资源所在路径
            }).extend({
                index: '/lib/index' //主入口模块
            }).use(['index', 'laypage'], function () {
                var layer = layui.layer;
            });
        </script>
    </body>
</html>